from django.urls import path, include

from apps.account_manager import urls as users_urls
from apps.log_center import urls as log_urls
from apps.target import urls as target_urls
from apps.task import urls as task_urls
from apps.session import urls as session_urls
from apps.event import urls as event_urls
from apps.vul import urls as vul_urls
from apps.keyword import urls as kwd_urls
from apps.report import urls as report_urls
from apps.account_manager import urls as account_manager_urls
from apps.captcha import urls as captcha_urls
from apps.system_manage import urls as system_manage_urls
from apps.notify import urls as notify_urls
from apps.warn_center import urls as warn_center_urls
from apps.global_config import urls as global_config_urls
from apps.strategy import urls as strategy_urls
from apps.user_group import urls as user_group_urls

from apps_v2.target import urls as target_urls_v2


url_v1 = [
    path(r'api/v1/user/', include(users_urls)),
    path(r'api/v1/account/', include(account_manager_urls)),
    path(r'api/v1/log/', include(log_urls)),
    path(r'api/v1/target/', include(target_urls)),
    path(r'api/v1/task/', include(task_urls)),
    path(r'api/v1/session/', include(session_urls)),
    path(r'api/v1/event/', include(event_urls)),
    path(r'api/v1/vul/', include(vul_urls)),
    path(r'api/v1/keyword/', include(kwd_urls)),
    path(r'api/v1/report/', include(report_urls)),
    path(r'api/v1/captcha/', include(captcha_urls)),
    path(r'api/v1/system/', include(system_manage_urls)),
    path(r'api/v1/notify/', include(notify_urls)),
    path(r'api/v1/warn/', include(warn_center_urls)),
    path(r'api/v1/gc/', include(global_config_urls)),
    path(r'api/v1/strategy/', include(strategy_urls)),
    path(r'api/v1/user_group/', include(user_group_urls)),
]

url_v2 = [
    path(r'api/v2/target/', include(target_urls_v2))
]

urlpatterns = [
    *url_v1,
    *url_v2
]
